import request from '@/utils/request'

export default {
    // 获取会议室信息分页
    meetingInfoPage(data) {
        return request({
            url: '/biz/meetinginfo/page',
            method: 'GET',
            data: data
        })
    },
    // 提交会议室信息表单 add为false时为编辑，默认为新增
    meetingInfoSubmitForm(data, add = true) {
        return request({
            url: '/biz/meetinginfo/' + (add ? 'add' : 'edit'),
            method: 'POST',
            data: data
        })
    },
    // 删除会议室信息
    meetingInfoDelete(data) {
        return request({
            url: '/biz/meetinginfo/delete',
            method: 'POST',
            data: data
        })
    },
    // 获取会议室信息详情
    meetingInfoDetail(data) {
        return request({
            url: '/biz/meetinginfo/detail',
            method: 'GET',
            data: data
        })
    },
}
